//
//  ZCChartsTableViewCell.m
//  VoiceMusic
//
//  Created by dllo on 15/10/16.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCChartsTableViewCell.h"
#import "ZCBaseLabel.h"
#import <Masonry.h>
@implementation ZCChartsTableViewCell
#pragma mark 排行榜cell尺寸
- (void)layoutSubviews
{
    [super layoutSubviews];
    [self.picImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.equalTo(self.contentView).offset(15);
        make.bottom.equalTo(self.contentView.mas_bottom).offset(-15);
        make.right.equalTo(self.contentView.mas_left).offset(140);
    }];
    // 分类名
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.picImageView.mas_right).offset(15);
        make.top.equalTo(self.contentView.mas_top).offset(10);
        make.bottom.equalTo(self.contentView.mas_top).offset(50);
        make.right.equalTo(self.contentView.mas_right);
    }];
    self.titleLabel.font = [UIFont systemFontOfSize:20];
    // 歌名 + 歌手
    [self.firstLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.picImageView.mas_right).offset(15);
        make.top.equalTo(self.titleLabel.mas_bottom).offset(5);
        make.bottom.equalTo(self.titleLabel.mas_bottom).offset(25);
        make.right.equalTo(self.contentView.mas_right).offset(-5);
    }];
    self.firstLabel.alpha = 0.6;
    
    [self.secondLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.picImageView.mas_right).offset(15);
        make.top.equalTo(self.firstLabel.mas_bottom).offset(5);
        make.bottom.equalTo(self.firstLabel.mas_bottom).offset(25);
        make.right.equalTo(self.contentView.mas_right).offset(-5);
    }];
    self.secondLabel.alpha = 0.6;
    
    [self.thirdLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.picImageView.mas_right).offset(15);
        make.top.equalTo(self.secondLabel.mas_bottom).offset(5);
        make.bottom.equalTo(self.secondLabel.mas_bottom).offset(25);
        make.right.equalTo(self.contentView.mas_right).offset(-5);
    }];
    self.thirdLabel.alpha = 0.6;
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
